﻿
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using Model;
using MsDAL;
using System.ComponentModel;

namespace ServiceHelper
{
    [DataObjectAttribute]
    public partial class Pot0a06Manager : Pot0a06Base
    {
        private static Pot0a06Manager _entity;

        public static Pot0a06Manager Entity
        {
            get
            {
                if (_entity == null)
                    _entity = new Pot0a06Manager();
                return _entity;
            }
        }

        public string SaveData(Hashtable tb, string action, string usercode)
        {
            List<SqlApp> lst = new List<SqlApp>();

            Pot0a06 model = null;
            if ("A" == action)
            {
                model = new Pot0a06();
                Components.CommonUtil.GetInstance.CopyProperties(tb, model);

                //执行新增
                lst.Add(this.Add(model));
            }

            return CommonManager.Entity.SaveData(lst);
        }

    }
}



